const modules = import.meta.glob('./**/*.ts', {
  eager: true,
});
export const setDirectives = {
  install(app: any) {
    for (const path in modules) {
      const module = modules[path];
      for (const key in module as object) {
        const moduleObj = module as Record<string, any>;
        const fn = moduleObj[key];
        app.directive(key, fn);
      }
    }
  },
};
